import request from '@/utils/request'
import store from '@/store'
// 接口方法, 只负责调用一个接口, 返回一个Promise对象
// 用户页 - 获取基本资料
export const getUserInfoAPI = () => {
  return request({
    url: '/v1_0/user',
    method: 'GET',
    headers: {
      Authorization: 'Bearer ' + store.state.user.token
    }
  })
}
